//
//  SecondMyFenDian.m
//  EJLX
//
//  Created by xufei on 15/12/5.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "SecondMyFenDian.h"

@implementation SecondMyFenDian
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
        _ID=[userDic[@"id"]intValue];
       _agentCount=[userDic[@"direct"][@"agentCount"]intValue];
        _vender=[userDic[@"direct"][@"vender"]intValue];
        _agentCount1=[userDic[@"inDirect"][@"agentCount"]intValue];
        _agentCount=[userDic[@"inDirect"][@"agentCount"]intValue];
        _avatar=[userDic[@"avatar"]copy];
        _level=[userDic[@"level"]copy];

        _owerName=[userDic[@"owerName"]copy];

        _phone=[userDic[@"phone"]copy];

                
    }
    return self;
}

@end
